<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$sitePath = 'http://'.$_SERVER['SERVER_NAME']."/DivSoft/";

include $sitePath."Util/session.php";
if($_SESSION['nivel'] != ''){
if($_SESSION['nivel'] == 1 || $_SESSION['nivel'] == 0){
?>
<a href="gerenciar_usuarios.php" name="itemMenuEsq">Usuários</a><hr />
<a href="#" name="itemMenuEsq">Empresas</a><hr />
<a href="../logout.php" name="logoutMenu">Sair</a>
<?php
} else if($_SESSION['nivel'] == 2) {
    ?>
    <a href="aluno/" name="itemMenuEsq">Página do Aluno</a><hr />
    <a href="Cadastro/index.php" name="itemMenuEsq">Cadastre-se</a><hr />
    <a href="Cadastro/empresa.php" name="itemMenuEsq">Empresas</a><br />
<?php }
} else {?>
    <a href="Cadastro/index.php" name="itemMenuEsq">Cadastre-se</a><hr />
    <a href="Cadastro/empresa.php" name="itemMenuEsq">Cadastre sua empresa</a><br />
<?php }?>